<script type="text/javascript">
	$(function(){
		//保存修改
		$("#basicInfo_form").submit(function(){
			jQuery.post("/Wyn/user_detail/basic_info_save",$(this).serialize(),
			function(data){
				$("#basicInfo").replaceWith(data);
			});
			return false;
		});
		//取消
		$("#basicInfoCancel").click(function(){
			jQuery.get("/Wyn/user_detail/basic_info_cancel",
			function(data){
				$("#basicInfo").replaceWith(data);
			});
		});
		$("#basicInfo_display").toggle(
			function(){
				$("#basicInfo_form").hide();
			},
			function(){
				$("#basicInfo_form").show();
			});
	});
</script>
<div class="info-section clearfix" id="basicInfo">
	<div class="details panel  opened" id="basicInfo_detail">
		<h3 id="basicInfo_display" class="legend">基本信息</h3>
		<div id="basicInfo_message" class="errors_div ajax_msgerror"
			style="display: none;"></div>
		<div id="basicInfo_loading" class="profileLoading"
			style="display: none;">
			<span>基本信息读取中...</span>
		</div>
		<form name="profileBaseInfoForm" id="basicInfo_form" method="post"
			action="#logo" class="panel">
			<input type="hidden" id="singlenature" name="singlenatrue"
				value="true">
			<p>
				<label for="gender"><span><em>*</em>性别:</span></label> <label
					for="gender2" class="labelRadio"><input type="radio"
					name="ud.gender" tabindex="2" value="male" <#if ud.gender=='male'>checked="checked"</#if>
					id="gender2">男</label> <label for="gender1" class="labelRadio"><input
					type="radio" name="ud.gender" tabindex="3" value="female" id="gender1" <#if ud.gender=='female'>checked="checked"</#if> >女</label>
			</p>
			<p>
				<label for="birthyear"> <span>*生日:</span></label>
				<input name="ud.birthYear" type="text" class="input-text" value="${ud.birthYear}"/>年
				<input name="ud.birthMonth" type="text" class="input-text" value="${ud.birthMonth}"/>月
				<input name="ud.birthDay" type="text" class="input-text" value="${ud.birthDay}"/>日
			</p>
			<p>
				<label for="myProvince"> <span><em>*</em>家乡:</span></label> 
				<input name="ud.homeProvince" type="text" class="input-text" value="${ud.homeProvince}"/>省
				<input name="ud.homeCity" type="text" class="input-text" value="${ud.homeCity}"/>市
			</p>
			<p>
				<label class="empty" for=""><span>确认:</span></label><input
					type="submit" tabindex="10" value="保存修改" class="input-submit"
					id="basicInfoSubmit" name="submit"> <input type="button"
					id="basicInfoCancel" class="input-submit gray" value="取消"
					tabindex="11">
			</p>
		</form>
	</div>
</div>